const common = require('./webpack.common')
const { merge } = require('webpack-merge')
module.exports = merge(common, {
  mode: 'development',
  output: {
    filename: '[name].[hash:8].bundle.js'
  },
  devServer: {
    hot: true,
    open: 'Chrome',
    publicPath: '',
    contentBase: './public' // 为静态资源开启serve
  },
  devtool: 'cheap-module-eval-source-map'
})
